package com.feicheng.controller.wx;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feicheng.common.result.ResultInfo;
import com.feicheng.persistence.entity.Asetting;
import com.feicheng.persistence.mapper.AmsgMapper;
import com.feicheng.persistence.mapper.AsettingMapper;
import com.feicheng.persistence.service.IAsettingService;
import jakarta.annotation.Resource;
import netscape.javascript.JSObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController("/wx/org")
@RequestMapping("/wx/org")
public class OrgController {

    @Autowired
    IAsettingService asettingService;

    @PostMapping("/sm")
    public ResultInfo getSm(@RequestBody JSONObject param) {
        Asetting asetting = asettingService.getById("1");
        param.put("asetting", asetting);
        return ResultInfo.success(param);
    }
}
